﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using System.Collections.Generic;
using CommonLibrary.DataModel.Basic;
using CommonLibrary.Wf.Common;
using CommonLibrary.Wf.InterFace;

namespace CommonLibrary.Wf.ActivityUtil
{
    [Serializable()]
    public sealed partial class BaseStateWorkflow : StateMachineWorkflowActivity
    {
        public BaseStateWorkflow()
        {
            InitializeComponent();
        }

        public static DependencyProperty 提交结果Property = DependencyProperty.Register(
            "提交结果", typeof(string), typeof(BaseStateWorkflow));
        [BrowsableAttribute(false)]
        [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
        public string 提交结果
        {
            get
            {
                return (string)base.GetValue(BaseStateWorkflow.提交结果Property);
            }
            set
            {
                base.SetValue(BaseStateWorkflow.提交结果Property, value);
            }
        }

        public static DependencyProperty 创建者Property = DependencyProperty.Register(
            "创建者", typeof(UserEntity), typeof(BaseStateWorkflow));
        [BrowsableAttribute(false)]
        [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
        public UserEntity 创建者
        {
            get
            {
                return (UserEntity)base.GetValue(BaseStateWorkflow.创建者Property);
            }
            set
            {
                base.SetValue(BaseStateWorkflow.创建者Property, value);
            }
        }

        public static DependencyProperty 流程名称Property = DependencyProperty.Register(
            "流程名称", typeof(string), typeof(BaseStateWorkflow));
        [BrowsableAttribute(false)]
        public string 流程名称
        {
            get
            {
                return (string)base.GetValue(BaseStateWorkflow.流程名称Property);
            }
            set
            {
                base.SetValue(BaseStateWorkflow.流程名称Property, value);
            }
        }

        [BrowsableAttribute(true)]
        public ChoiceClrxx 下一步处理人
        {
            get;
            set;
        }

        /// <summary>
        /// 流程的值
        /// </summary>
        [BrowsableAttribute(false)]
        public Dictionary<string, string> insValue { set; get; }
    }
}
